package cn.itsource.user.service;

import cn.itsource.basic.exception.CustomException;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.user.domain.WechatUser;
import cn.itsource.user.dto.UserDto;

import java.util.Map;

public interface IWechatService extends IBaseService<WechatUser>{

    /**
     * 处理回调方法
     * @param map（code:授权码）
     */
    Map<String,Object>  handleCallBackMethod(Map<String, String> map);

    /**
     * 微信和手机绑定一起
     * @param userDto
     */
    Map<String, Object> binder(UserDto userDto) throws CustomException;
}
